﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace LitTools
{
    /// <summary>
    /// 行为节点-Debug
    /// </summary>
    public class BTNode_Action_Debug : BTNode_Action
    {
        private string message;
        public BTNode_Action_Debug(string name, string message)
        {
            this.name = name;
            this.message = message;
        }

        protected override void OnStart()
        {
            Debug.Log(message);
        }

        protected override void OnStop()
        {

        }

        protected override BTNodeState OnUpdate()
        {
            return BTNodeState.Success;
        }
    }
}